import requests
def face_detect(API_key,API_sercret,image_path):
    """该函数为调用face++ face_compare接口"""
   compare_url = 'https://api-cn.faceplusplus.com/facepp/v3/compare'

payload = {
    'api_key':API_key,
    'api_secret':API_sercret,
    'face_token1':Liu_meta_data_face_token,
    'face_token2':face02_token
}
r = requests.post(compare_url,params = payload)
    return r.json()